docs: explore sixel for dashboard rendering - #1394
Open
jared-outpost[bot] wants to merge 1 commit into
Open
Conversation
Feasibility investigation for terminal-graphics (sixel) rendering of `dashboard view`. Documents that the CLI already ships a sixel capability probe (src/lib/sixel.ts) and a runtime PNG/JPEG->sixel encoder (src/lib/sixel-image.ts, wired into `sentry api`), and lays out how a dashboard integration would reuse that machinery: terminal support matrix, grid/framebuffer integration strategies, dependency/runtime cost, graceful fallback, and opt-in (--graphics) vs auto-detect. Fixes #1231
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Contributor
Author
|
ci green, self-review clean → ready |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Investigation for #1231 — feasibility of using sixel / terminal-graphics for
dashboard viewrendering.Adds a design note at
packages/cli/docs/design/sixel-dashboard-rendering.md.Key finding
the missing pieces the issue assumes are mostly already built:
src/lib/sixel.ts— capability probe (canRenderSixel(),detectSixelCaps(),terminalPixelWidth()), DA1-based, cached, unix-only, respectsSENTRY_NO_SIXEL/NO_COLOR/SENTRY_PLAIN_OUTPUT.src/lib/sixel-image.ts— runtime PNG/JPEG→sixel encoder (imageBytesToSixel), no new deps.sentry apialready renders images inline viaresolveBinaryTtyOutput— the exact pattern a dashboard renderer would follow.so the real work is not detection or encoding — it's producing a raster for a chart and fitting pixel images into a grid that is currently measured in character cells (
src/lib/formatters/dashboard.ts).What the note covers
--graphics=sixel, default off) first, auto-detect laterno code changes — investigation only.